package com.bjt.wms.sys.controller;

import com.bjt.common.config.paragetter.BasePageRequest;
import com.bjt.wms.sys.model.FlowDetail;
import com.bjt.wms.sys.model.Stock;
import com.bjt.wms.sys.service.FLowDetailService;
import com.bjt.wms.sys.service.StockService;
import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;
import com.jfinal.kit.PathKit;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class StockController extends Controller {

    @Inject
    private StockService stockService;

    /**
     * 分页查询库存信息列表
     */
    public void queryStockList(BasePageRequest<Stock> basePageRequest) {

        renderJson(stockService.queryStockList(basePageRequest));
    }
}
